package com.atom.common.util;

import java.lang.reflect.InvocationTargetException;
import java.util.Map;

import org.apache.commons.beanutils.BeanUtils;

public class BeanToMapUtil {
  
  public static Map<String, String> toMap(Object o) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException {
    return BeanUtils.describe(o);
  }

}
